CC=exec cc

CFLAGS=$(OPT) -D_MINIX -D_POSIX_SOURCE
LDFLAGS=
LIBS = -ldfs

PROGRAMS= dfs_start dfs_stop

all:	$(PROGRAMS)

dfs_start: dfs_start.c dfs_net.c dfs_service.c dfs_config.c dfs_messages.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $? $(LIBS)
	install -S 4kw $@

dfs_stop: dfs_stop.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $? $(LIBS)
	install -S 4kw $@

install:	/usr/bin/dfs_start /usr/bin/dfs_stop

/usr/bin/dfs_start:  dfs_start
	install -cs -o bin dfs_start $@
/usr/bin/dfs_stop:  dfs_stop
	install -cs -o bin dfs_stop $@

clean:
	rm -f *.o a.out core $(PROGRAMS)